package cn.edu.zut.sunday.cve.domain;

import cn.edu.zut.sunday.base.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "infomation_data")
public class InfoData extends  BaseEntity<Integer> {
    @Column(name = "name")
    private String name;

    @Column(name = "severity")
    private String severity;


    @Column(name = "vuln_id")
    private String vulnId;

    @Column(name = "vuln_type")
    private String vulnType;

    @OneToMany(mappedBy = "vulnType", cascade = CascadeType.REMOVE, fetch = FetchType.EAGER)
    Set<InfoSec>  infoSecs;
}
